package com.witframework.baseapp.security.service.impl;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import com.witframework.WitServiceException;
import com.witframework.baseapp.security.BaseUser;
import com.witframework.baseapp.security.dao.IUserDao;
import com.witframework.baseapp.security.service.UserService;
import com.witframework.core.logic.BaseService;

@Service("userService")
public class UserServiceImpl extends BaseService implements UserService{
	IUserDao<BaseUser> dao;

	@Autowired
	public void setDao(IUserDao<BaseUser> userDao) {
		this.dao = userDao;
		super.setDao(userDao);
	}
	@Override
	public String save(Object entity)throws WitServiceException {
		return dao.save((BaseUser)entity);
	}
}
